textview: remove superfluous GTK+ grabs
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 8 Apr 2014 18:23:43 +0000 (20:23 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 23 May 2014 17:54:25 +0000 (19:54 +0200)
gtk/gtktextview.c

index 8431e3f1c80e63b5242127d6a7dbab3d2dff0b6d..c37beabf7e5aa127cfc4954b32768d20085e9907 100644 (file)
@@ -7052,10 +7052,6 @@ gtk_text_view_start_selection_drag (GtkTextView       *text_view,
     data->granularity = SELECT_CHARACTERS;
 
   priv->grab_device = button->device;
-  gtk_device_grab_add (GTK_WIDGET (text_view),
-                       priv->grab_device,
-                       TRUE);
-
   buffer = get_buffer (text_view);
   
   cursor = *iter;
@@ -7138,8 +7134,6 @@ gtk_text_view_end_selection_drag (GtkTextView *text_view)
       priv->scroll_timeout = 0;
     }
 
-  gtk_device_grab_remove (GTK_WIDGET (text_view),
-                          priv->grab_device);
   priv->grab_device = NULL;
 
   if (priv->magnifier_popover)